import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
import { DateConverter } from '@farris/kendo-binding';
var Newobject2Xgn6ComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(Newobject2Xgn6ComponentViewmodelForm, _super);
    function Newobject2Xgn6ComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'zsbh',
            name: "{{zsbh_a2b6fe39_6e7x}}",
            binding: 'zsbh',
            updateOn: 'blur',
            defaultI18nValue: '住宿编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "zsbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'note2',
            name: "{{note2_5c227d8f_fb5g}}",
            binding: 'note2',
            updateOn: 'blur',
            defaultI18nValue: '住宿相关备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "note2", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'cjr2',
            name: "{{cjr2_cd5dffd9_k5cq}}",
            binding: 'cjr2',
            updateOn: 'blur',
            defaultI18nValue: '创建人',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "cjr2", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'cjsj',
            name: "{{cjsj_3685c6c0_geuh}}",
            binding: 'cjsj',
            updateOn: 'blur',
            defaultI18nValue: '创建时间',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "cjsj", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'kssj2',
            name: "{{kssj2_fd32f159_d6me}}",
            binding: 'kssj2',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '开始日期',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "kssj2", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jsrq2',
            name: "{{jsrq2_b23d5af3_v5o6}}",
            binding: 'jsrq2',
            updateOn: 'blur',
            defaultI18nValue: '结束日期',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "jsrq2", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zsje',
            name: "{{zsje_4a39e50c_4wua}}",
            binding: 'zsje',
            updateOn: 'blur',
            defaultI18nValue: '住宿总费用',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "zsje", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zsts',
            name: "{{zsts_3657f4e0_z7yv}}",
            binding: 'zsts',
            updateOn: 'blur',
            defaultI18nValue: '住宿天数',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "zsts", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zsdj',
            name: "{{zsdj_90bd1927_5jjr}}",
            binding: 'zsdj',
            updateOn: 'blur',
            defaultI18nValue: '住宿单价',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "zsdj", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'sfybt2',
            name: "{{sfybt2_e60cd55d_i96e}}",
            binding: 'sfybt2',
            updateOn: 'blur',
            defaultI18nValue: '是否有补贴',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "sfybt2", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'btje2',
            name: "{{btje2_e4cc080f_88if}}",
            binding: 'btje2',
            updateOn: 'blur',
            defaultI18nValue: '补贴金额',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], Newobject2Xgn6ComponentViewmodelForm.prototype, "btje2", void 0);
    Newobject2Xgn6ComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '住宿明细',
            enableValidate: true
        }),
        Injectable()
    ], Newobject2Xgn6ComponentViewmodelForm);
    return Newobject2Xgn6ComponentViewmodelForm;
}(Form));
export { Newobject2Xgn6ComponentViewmodelForm };
